home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business & Presentations
/
Business and Presentations - Volume 1 (1995)(Sideface)(NL).iso
/
drivers
/
dvips54
/
makefile.tc
< prev
next >
Wrap
Makefile
|
1990-11-25
|
5KB
|
165 lines
#
# Makefile for dvips
# modified for Turbo C on MS-DOS by rjl@monu1.cc.monash.edu.au
# 4th November 1990
# compiler
CC = c:\tc\tcc
# linker
LINK = c:\tc\tlink
# include directory
INCLUDE =-Ic:\tc\include
# for SYSV (and friends which use <string.h> instead of <strings.h>
# define the c-compiler flag -DSYSV
# -DMSDOS for MS-DOS systems (needs -DSYSV also)
SYS = -DSYSV -DMSDOS
# where the installed binary goes
# BINDIR = /usr/bin
BINDIR = c:\emtex
# where the config files go
# CONFIGDIR = /usr/lib/tex/ps
CONFIGDIR = c:\emtex\ps
# where the header PS files go
# HEADERDIR = /usr/lib/tex/ps
HEADERDIR = c:\emtex\ps
# where epsf.tex and rotate.tex go (usually the TeX macros directory)
# TEXMACRODIR = /usr/lib/tex/inputs
TEXMACRODIR = c:\emtex\texinput
# where the manual page goes
# MANDIR = /usr/local/text/man/man1
MANDIR = c:\emtex\doc
# add -DDEBUG to turn on debugging capability
# add -DTPIC for tpic support
# add -DEMTEX for emTeX support
# add -DFONTLIB for font library support
# add -DSEARCH_SUBDIRECTORIES for subdirectory searching
# if the default resolution is not 300 dpi,
# add -DEFRES=400 or whatever is required
DEFS= -DTPIC -DDEBUG -DEMTEX -DFONTLIB
# these options to produce debug map
#OPT = -M -y -v
OPT =
#LINKOPT = /l /m /s /v
LINKOPT =
# libraries to include
FLIBS= -lm
#MSDOS sets all paths in config.ps
CFLAGS = $(DEFS) $(OPT) $(SYS) $(INCLUDE)
SRC = dospecia.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
download.c prescan.c scanpage.c skippage.c output.c scalewid.c \
dosectio.c dopage.c resident.c search.c unpack.c drawPS.c \
header.c makefont.c repack.c virtualf.c dpicheck.c finclude.c flib.c
OBJ = dospecia.obj dviinput.obj fontdef.obj loadfont.obj dvips.obj tfmload.obj \
download.obj prescan.obj scanpage.obj skippage.obj output.obj scalewid.obj \
dosectio.obj dopage.obj resident.obj search.obj unpack.obj drawPS.obj \
header.obj makefont.obj repack.obj virtualf.obj dpicheck.obj finclude.obj \
flib.obj
# files required to make a distribution
CONFIGFILES = config.ps psfonts.map
HEADERFILES = tex.lpr texc.scr texps.lpr special.lpr finclude.lpr
PCFILES = pc/README.pc pc/makefile.tc pc/linkopt.tc \
pc/config.ps pc/maketexp.bat
FILES = $(CONFIGFILES) $(HEADERFILES) $(SRC) $(PCFILES) \
Makefile INSTALLATION README rotsample.tex AGaramond-Demo.pfb \
MakeTeXPK ../afm/Makefile epsf.tex epsf.sty rotate.tex dvips.1 \
rotate.sty paths.h debug.h structures.h squeeze.c afm2tfm.c afm2tfm.1
all : afm2tfm.exe dvips.exe tex.pro texps.pro texc.pro special.pro finclude.pro
# default rules
.c.obj:
$(CC) -c -f -ml $(CFLAGS) $<
dvips.exe : $(OBJ)
$(LINK) $(LINKOPT) @pc\linkopt.tc
afm2tfm.exe: afm2tfm.c
$(CC) $(CFLAGS) $(LIBS) $(FLIBS) afm2tfm.c
$(OBJ) : structures.h debug.h paths.h
squeeze.exe : squeeze.c
$(CC) $(CFLAGS) squeeze.c
tex.pro : tex.lpr squeeze.exe
squeeze tex.lpro tex.pro
texc.pro: texc.lpr squeeze.exe
squeeze texc.lpro texc.pro
texc.lpr: tex.lpr
echo This does "texc.scr tex.lpr texc.lpr" on Unix
echo For MSDOS, copy tex.lpr to texc.lpr
echo then edit texc.lpr to remove the code
echo for uncompressed fonts, and uncomment the
echo code for unpacking compressed fonts
texps.pro : texps.lpr squeeze.exe
squeeze texps.lpro texps.pro
special.pro : special.lpr squeeze.exe
squeeze special.lpr special.pro
finclude.pro: finclude.lpr squeeze.exe
squeeze finclude.lpr finclude.pro
install : afm2tfm.exe dvips.exe pc/maketexp.bat \
tex.pro texc.pro texps.pro special.pro finclude.pro \
pc/config.ps psfonts.map epsf.tex epsf.sty rotate.tex \
rotate.sty dvips.1 afm2tfm.1
mkdir $(BINDIR)
mkdir $(HEADERDIR)
mkdir $(CONFIGDIR)
mkdir $(MANDIR)
mkdir $(TEXMACRODIR)
copy afm2tfm.exe $(BINDIR)\afm2tfm.exe
copy dvips.exe $(BINDIR)\dvips.exe
copy pc\maketexp.bat $(BINDIR)\maketexp.bat
copy tex.pro $(HEADERDIR)
copy texc.pro $(HEADERDIR)
copy texps.pro $(HEADERDIR)
copy special.pro $(HEADERDIR)
copy finclude.pro $(HEADERDIR)
copy pc\config.ps $(CONFIGDIR)
copy psfonts.map $(CONFIGDIR)
copy epsf.tex $(TEXMACRODIR)
copy epsf.sty $(TEXMACRODIR)
copy rotate.tex $(TEXMACRODIR)
copy rotate.sty $(TEXMACRODIR)
# copy dvips.1 $(MANDIR)
# copy afm2tfm.1 $(MANDIR)
copy pc\dvips.doc $(MANDIR)
copy pc\afm2tfm.doc $(MANDIR)
veryclean :
del *.obj
del dvips.exe
del squeeze.exe
del afm2tfm.exe
del afm2tfm.map
del dvips.map
del squeeze.map
del *.pro
clean :
del *.obj
del squeeze.exe
del afm2tfm.map
del dvips.map
del squeeze.map